//
//  BLNavigationViewController.m
//  新浪微博
//
//  Created by hbl on 16/2/14.
//  Copyright © 2016年 hbl. All rights reserved.
//

#import "BLNavigationViewController.h"

@interface BLNavigationViewController ()

@end

@implementation BLNavigationViewController

+(void)initialize
{
    UINavigationBar *bar = [UINavigationBar appearance];
    NSMutableDictionary *attr = [NSMutableDictionary dictionary];
    attr[NSFontAttributeName] = [UIFont boldSystemFontOfSize:19];
    NSShadow *shadow = [[NSShadow alloc]init];
    [shadow setShadowOffset:CGSizeMake(0, 0)];
    attr[NSShadowAttributeName] = shadow;
    [bar setTitleTextAttributes:attr];
    
    
    UIBarButtonItem *item = [UIBarButtonItem appearance];
   
     NSMutableDictionary *dictionaryDisable = [NSMutableDictionary dictionary];
    dictionaryDisable[NSForegroundColorAttributeName] = [UIColor grayColor];
    [item setTitleTextAttributes:dictionaryDisable forState:UIControlStateDisabled];
    
    NSMutableDictionary *dictionary = [NSMutableDictionary dictionary];
    dictionary[NSForegroundColorAttributeName] = [UIColor orangeColor];
    [item setTitleTextAttributes:dictionary forState:UIControlStateNormal];
    
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
}

- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated
{
    
    if (self.viewControllers.count > 0) {
        viewController.hidesBottomBarWhenPushed = YES;
    }
    [super pushViewController:viewController animated:animated];
}



@end
